package com.aluka.nirvana.framework.core.annotation;

import com.aluka.nirvana.framework.core.configuration.NirvanaCoreConfiguration;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.Import;

import java.lang.annotation.Documented;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * 开启核心配置
 * @author gongli
 * @since 2019/3/30 13:40
 */
@Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
@Target(value = { java.lang.annotation.ElementType.TYPE })
@Documented
@Import(NirvanaCoreConfiguration.class)
@EnableAutoConfiguration(excludeName = {"dataSourceAutoConfiguration", "druidDataSourceAutoConfigure"})
@Inherited
public @interface EnableNirvana {

    String value() default "";
}
